package com.syl.seckill.dao;

import com.syl.seckill.entity.SuccessKilled;
import org.apache.ibatis.annotations.Param;

/**
 * Created by 57695 on 2017/1/22.
 */
public interface SuccessKilledDao {
    /**
     * 插入购买明细，可过滤重复
     */
    int insertSuccessKilled(@Param("seckillId")long seckillId,@Param("userPhone") long userPhone);
    /**
     * 根据秒杀商品的Id查询明细SuccessKilled对象（该对象携带了Seckill秒杀产品对象）
     */
    SuccessKilled queryByIdWithSeckill(@Param("seckillId")long seckillId,@Param("userPhone") long userPhone);
}
